/**
 * Created by leiweibo on 7/11/15.
 */

var app = angular.module('hospitalaggregateservice', []);
app.factory('HosptialAggregateService', function($http, BaseService) {

  return {
    list_hospital_group_by_province: function (showAll, success) {
      $http.get(BaseService.baseUrl + '/hospital/list_group_by_province?showAll=' + showAll).success(success);
    },
    list_market_by_hospital: function(hospitalId, success) {
      $http.get(BaseService.baseUrl + '/market/list?hospitalId=' + hospitalId).success(success);
    }
  };
});

